Version

CreateFrom(String,Nullable<RichTextImageFormat>) Method

Creates an image node from data retrieved from the specified file.
Syntax
'Declaration
 
Public Overloads Shared Function CreateFrom( _
   ByVal filePath As String, _
   Optional ByVal format As Nullable(Of RichTextImageFormat) _
) As RichTextImage
public static RichTextImage CreateFrom( 
   string filePath,
   Nullable<RichTextImageFormat> format
)

Parameters

filePath
Image file path.
format
Image format of the file. If not specified then it will be deduced from the file extension.

Return Value

A new image node.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also